#include <iostream>

using namespace std;

void change(int *, int *);

int main(void)
{
	int one, two, three;
	int t;

	cout << "one: ";
	cin >> one;
	cout << "two: ";
	cin >> two;
	cout << "three: ";
	cin >> three;

	if(one > two)
		change(&one, &two);
	if(one > three)
		change(&one, &three);
	if(two > three)
		change(&two, &three);

	cout << "one: " << one << endl;
	cout << "two: " << two << endl;
	cout << "three: " << three << endl;

	return 0;
}

void change(int  * num1, int  * num2)
{
	int t;
	t = * num1;
	* num1 = * num2;
	* num2 = t;
}
